package com.yunzhou.mapper;

import com.yunzhou.entity.ForumBoard;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ForumBoardMapper {

    // 获取获取所有的一级板块
    List<ForumBoard> getForumBoard1();

    // 根据一级板块ids获取对应的二级板块ids ( in查询 )
    List<ForumBoard> getForumBoard2ByParentBoardIds(List<Integer> parentBoardIds);

    // 根据一级板块id获取对应的二级板块
    List<ForumBoard> getForumBoard2ByParentBoardId(Integer boardId);

    // 根据一级板块名称获取对应的二级板块
    List<ForumBoard> getForumBoard2ByParentBoardName(String boardName);

}
